using HuiLian.Common.Input;
using HuiLian.Service.Platform.Pipe.Input;
using HuiLian.Common.Output;
using HuiLian.Model.Platform;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace HuiLian.Service.Platform.Pipe
{
    /// <summary>
    /// 管网资产接口
    /// </summary>
    public interface IPipeService
    {
        /// <summary>
        /// 获取管网资产信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);

        /// <summary>
        /// 查询管网资产信息
        /// </summary>
        /// <param name="input">分页信息</param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<PipeEntity> input);

        /// <summary>
        /// 添加管网资产信息
        /// </summary>
        /// <param name="input">管网资产信息</param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(PipeAddInput input);

        /// <summary>
        /// 更新管网资产信息
        /// </summary>
        /// <param name="input">管网资产信息</param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(PipeUpdateInput input);

        /// <summary>
        /// 删除管网资产信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> DeleteAsync(long id);

        /// <summary>
        /// 软删除管网资产信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);

        /// <summary>
        /// 添加列表
        /// </summary>
        /// <param name="list"></param>
        /// <returns></returns>
        Task<IResponseOutput> AddListAsync(List<PipeEntity> list);
    }
}
